package com.Jano.util;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.time.Duration;

/**
 * @ClassName TokenSettings
 * @Description TODO
 * @Author Administrator
 * @Date: 2022/7/14 14:21
 * @Version 1.0
 */
@Configuration
@ConfigurationProperties(prefix = "jwt")
@Data
public class TokenSettings {
    //密钥
    private String secretKey;
    //过期时间
    private Duration accessTokenExpireTime;
    //PC刷新时间
    private Duration refreshTokenExpireTime;
    //App刷新时间
    private Duration refreshTokenExpireAppTime;
    //发行人
    private String  issuer;
}
